verify Assertion
abstract fun verifyAssertion(attestationObject: ByteArray, assertionFromDevice: ByteArray, referenceClientData: ByteArray, challenge: ByteArray, counter: Long = 0): AttestationResult
Verifies an App Attestation in conjunction with an assertion for some client data.
First, it verifies the app attestation, afterwards it verifies the assertion, checks whether at most counter many signatures have been performed using the key bound to the attestation before signing the assertion and verifies whether the client data referenced within the assertion matches referenceClientData
Parameters
attestation Object
the AppAttest attestation object to verify
assertion From Device
the assertion data created on the device.
reference Client Data
the expected client data to be contained in assertionFromDevice
counter
the highest expected value of the signature counter prior to creating the assertion.